package com.tuanzi.loan.vo.request.credithousekeeper;

import lombok.Data;

import java.io.Serializable;
import java.util.Date;
@Data
public class CreditCompensatoryChildOrderStatRequest implements Serializable{
    private Date startDate;
    private Date endDate;
    private String OrderNum;
    private String childOrderNum;
    private String productname;
    private String entrance;
    private Integer remainamount;
    private Integer minamount;
    private Integer maxamount;
    private String status;
    public Integer getMinamount() {
        if (this.remainamount !=null){
            switch (this.remainamount){
                case 0:return null;
                case 1:this.minamount = 310; return this.minamount;
                case 2:this.minamount = 501; return this.minamount;
                case 3:this.minamount = 1001; return this.minamount;
                default:this.minamount = 1250; return this.minamount;
            }
        }else{
            return null;
        }
    }

    public void setMinamount(Integer minamount) {
        this.minamount = minamount;
    }

    public Integer getMaxamount() {
        if (this.remainamount !=null){
            switch (this.remainamount){
                case 0:this.maxamount = 310; return this.maxamount;
                case 1:this.maxamount = 500; return this.maxamount;
                case 2:this.maxamount = 1000; return this.maxamount;
                case 3:this.maxamount = 1250; return this.maxamount;
                default:return null;
            }
        }else{
            return null;
        }

    }

    public void setMaxamount(Integer maxamount) {
        this.maxamount = maxamount;
    }
}
